﻿public class BuffHidder : BuffBase
{
    public bool Permanent = false;
    public BuffHidder() : base()
    {
        Type = BuffType.Hidder;
        Permanent = false;
    }
    public BuffHidder(bool permanent) : base()
    {
        Type = BuffType.Hidder;
        Permanent = permanent;
    }
    public static bool CheckConditon(UnitBase unit)
    {
        if (unit.HasBuff(BuffType.Hidder)) return false;
        if (unit.cell.Type == CellType.Forest) return true;
        return false;
    }
    public override void Update()
    {

    }
    public override string ToString()
    {
        return "隐匿：这个单位不容易被敌军看见";
    }
}